<template>
  <div class="about-page">
    <!-- 顶部导航栏 -->
    <Header />
    
    <div class="main-content">
      <div class="container">
        <!-- 页面标题 -->
        <div class="page-header">
          <h1>{{ $t('nav.about') }}</h1>
          <p>了解Web商城的故事</p>
        </div>
        
        <!-- 公司介绍 -->
        <div class="about-section">
          <div class="about-content">
            <div class="about-text">
              <h2>我们的故事</h2>
              <p>
                Web商城成立于2024年，是一家专注于为用户提供优质购物体验的电商平台。
                我们致力于通过先进的技术和贴心的服务，为用户打造便捷、安全、愉悦的购物环境。
              </p>
              <p>
                自成立以来，我们始终坚持"用户至上"的理念，不断优化产品和服务，
                努力成为用户最信赖的购物平台之一。
              </p>
            </div>
            <div class="about-image">
              <img src="https://via.placeholder.com/400x300?text=About+Us" alt="{{ $t('nav.about') }}" />
            </div>
          </div>
        </div>
        
        <!-- 核心价值观 -->
        <div class="values-section">
          <h2>核心价值观</h2>
          <div class="values-grid">
            <div class="value-item">
              <div class="value-icon">
                <HeartOutlined />
              </div>
              <h3>用户至上</h3>
              <p>始终将用户需求放在首位，提供贴心周到的服务</p>
            </div>
            <div class="value-item">
              <div class="value-icon">
                <SafetyOutlined />
              </div>
              <h3>品质保证</h3>
              <p>严格把控商品质量，确保用户购买到优质产品</p>
            </div>
            <div class="value-item">
              <div class="value-icon">
                <ThunderboltOutlined />
              </div>
              <h3>创新驱动</h3>
              <p>持续技术创新，为用户带来更好的购物体验</p>
            </div>
            <div class="value-item">
              <div class="value-icon">
                <TeamOutlined />
              </div>
              <h3>团队协作</h3>
              <p>倡导团队合作，共同创造更大的价值</p>
            </div>
          </div>
        </div>
        
        <!-- 发展历程 -->
        <div class="timeline-section">
          <h2>发展历程</h2>
          <div class="timeline">
            <div class="timeline-item">
              <div class="timeline-date">2024年1月</div>
              <div class="timeline-content">
                <h3>公司成立</h3>
                <p>Web商城正式成立，开始电商平台的开发</p>
              </div>
            </div>
            <div class="timeline-item">
              <div class="timeline-date">2024年3月</div>
              <div class="timeline-content">
                <h3>平台上线</h3>
                <p>Web商城平台正式上线，开始为用户提供服务</p>
              </div>
            </div>
            <div class="timeline-item">
              <div class="timeline-date">2024年6月</div>
              <div class="timeline-content">
                <h3>用户突破</h3>
                <p>注册用户数突破10万，成为受欢迎的购物平台</p>
              </div>
            </div>
            <div class="timeline-item">
              <div class="timeline-date">2024年9月</div>
              <div class="timeline-content">
                <h3>技术升级</h3>
                <p>平台技术全面升级，提供更好的用户体验</p>
              </div>
            </div>
          </div>
        </div>
        
        <!-- 团队介绍 -->
        <div class="team-section">
          <h2>核心团队</h2>
          <div class="team-grid">
            <div class="team-member">
              <div class="member-avatar">
                <img src="https://via.placeholder.com/150x150?text=CEO" alt="CEO" />
              </div>
              <h3>张三</h3>
              <p class="member-title">首席执行官</p>
              <p class="member-desc">拥有10年电商行业经验，致力于打造优质购物平台</p>
            </div>
            <div class="team-member">
              <div class="member-avatar">
                <img src="https://via.placeholder.com/150x150?text=CTO" alt="CTO" />
              </div>
              <h3>李四</h3>
              <p class="member-title">技术总监</p>
              <p class="member-desc">专注于技术架构设计，确保平台稳定运行</p>
            </div>
            <div class="team-member">
              <div class="member-avatar">
                <img src="https://via.placeholder.com/150x150?text=COO" alt="COO" />
              </div>
              <h3>王五</h3>
              <p class="member-title">运营总监</p>
              <p class="member-desc">负责平台运营策略，提升用户体验</p>
            </div>
          </div>
        </div>
        
        <!-- 联系我们 -->
        <div class="contact-section">
          <h2>{{ $t('nav.contact') }}</h2>
          <div class="contact-info">
            <div class="contact-item">
              <EnvironmentOutlined />
              <div>
                <h4>公司地址</h4>
                <p>北京市朝阳区xxx街道xxx号</p>
              </div>
            </div>
            <div class="contact-item">
              <PhoneOutlined />
              <div>
                <h4>客服热线</h4>
                <p>400-123-4567</p>
              </div>
            </div>
            <div class="contact-item">
              <MailOutlined />
              <div>
                <h4>邮箱地址</h4>
                <p>service@webmall.com</p>
              </div>
            </div>
            <div class="contact-item">
              <ClockCircleOutlined />
              <div>
                <h4>工作时间</h4>
                <p>周一至周日 9:00-18:00</p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 底部信息 -->
    <Footer />
  </div>
</template>

<script setup>
import {
  HeartOutlined,
  SafetyOutlined,
  ThunderboltOutlined,
  TeamOutlined,
  EnvironmentOutlined,
  PhoneOutlined,
  MailOutlined,
  ClockCircleOutlined
} from '@ant-design/icons-vue'
import Header from '@/components/Header.vue'
import Footer from '@/components/Footer.vue'
</script>

<style scoped>
.about-page {
  min-height: 100vh;
  background-color: #f5f5f5;
}

.main-content {
  flex: 1;
  padding: 20px 0;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin: 0 0 10px 0;
}

.page-header p {
  color: #666;
  font-size: 16px;
  margin: 0;
}

.about-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin: 0 0 15px 0;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image {
  flex-shrink: 0;
}

.about-image img {
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.values-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin-bottom: 30px;
}

.values-section h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 30px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-item {
  text-align: center;
  padding: 20px;
}

.value-icon {
  font-size: 48px;
  color: #1890ff;
  margin-bottom: 15px;
}

.value-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
}

.value-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.timeline-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin-bottom: 30px;
}

.timeline-section h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 30px 0;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e8e8e8;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-date {
  width: 120px;
  text-align: center;
  font-weight: 600;
  color: #1890ff;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 0 20px;
}

.timeline-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
}

.timeline-content p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.team-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin-bottom: 30px;
}

.team-section h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 30px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  text-align: center;
  padding: 20px;
}

.member-avatar {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 5px 0;
}

.member-title {
  font-size: 14px;
  color: #1890ff;
  font-weight: 500;
  margin: 0 0 10px 0;
}

.member-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.contact-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.contact-section h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 30px 0;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.contact-item .anticon {
  font-size: 24px;
  color: #1890ff;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 5px 0;
}

.contact-item p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-content {
    padding: 15px 0;
  }
  
  .page-header h1 {
    font-size: 24px;
  }
  
  .about-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  .about-image img {
    width: 100%;
    height: 200px;
  }
  
  .values-grid,
  .team-grid,
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    flex-direction: row !important;
  }
  
  .timeline-date {
    width: 80px;
    text-align: left;
  }
  
  .timeline-content {
    margin-left: 40px;
    margin-right: 0;
  }
}
</style> 